package com.example.easybuy.service;

import com.example.easybuy.entity.News;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface NewsService {
    PageInfo<News> newsByPage(Map<String, Object> map);

    boolean delNews(int id);

    boolean addNews(Map<String, Object> news);

    boolean updateNews(Map<String,Object> news);

    News getNews(int id);
}
